package com.lxw.report.engine.dataModel.report;


import com.lxw.report.engine.dataModel.column.ColumnExpressionConfig;
import com.lxw.report.engine.enums.AlignTypeEnum;

/**
 * 报表中每个单元格的格式设置
 */
public class ReportCellSetting {
    /**
     * 计算列配置
     */
    private ColumnExpressionConfig expression;
    /**
     * 该列宽度
     */
    private Integer width=100;

    /**
     * 字体粗度
     */
    private Integer fontWight;

    /**
     * 字体颜色
     */
    private String fontColor;
    /**
     * 对齐方式
     */
    private AlignTypeEnum textAlign=AlignTypeEnum.center;
    /**
     * 是否百分比格式化
     */
    private Boolean percented=false;
    /**
     * 小数点后几位(针对小数与百分比,为null时不进行格式化)
     */
    private Integer decimalCount;
    /**
     * 是否使用千分符
     */
    private Boolean thousandSeparatored=false;

    public ColumnExpressionConfig getExpression() {
        return expression;
    }

    public void setExpression(ColumnExpressionConfig expression) {
        this.expression = expression;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getFontWight() {
        return fontWight;
    }

    public void setFontWight(Integer fontWight) {
        this.fontWight = fontWight;
    }

    public String getFontColor() {
        return fontColor;
    }

    public void setFontColor(String fontColor) {
        this.fontColor = fontColor;
    }

    public AlignTypeEnum getTextAlign() {
        return textAlign;
    }

    public void setTextAlign(AlignTypeEnum textAlign) {
        this.textAlign = textAlign;
    }

    public Boolean getPercented() {
        return percented;
    }

    public void setPercented(Boolean percented) {
        this.percented = percented;
    }

    public Integer getDecimalCount() {
        return decimalCount;
    }

    public void setDecimalCount(Integer decimalCount) {
        this.decimalCount = decimalCount;
    }

    public Boolean getThousandSeparatored() {
        return thousandSeparatored;
    }

    public void setThousandSeparatored(Boolean thousandSeparatored) {
        this.thousandSeparatored = thousandSeparatored;
    }
}
